home *** CD-ROM | disk | FTP | other *** search
Emacs Compiled Lisp | 1998-05-21 | 2.3 KB |
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was processed as: Emacs Compiled Lisp
(other/emacsCompiledLisp).
This format is not currently supported by dexvert.
Confidence | Program | Detection | Match Type | Support
|
---|
1%
| dexvert
| Emacs Compiled Lisp (other/emacsCompiledLisp)
| magic
| Unsupported |
100%
| file
| Emacs/XEmacs v20 byte-compiled Lisp data
| default
| |
99%
| file
| data
| default
| |
100%
| TrID
| Emacs/XEmacs byte-compiled Lisp (generic)
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 3b 45 4c 43 14 00 00 00 | 0a 3b 3b 3b 20 63 6f 6d |;ELC....|.;;; com|
|00000010| 70 69 6c 65 64 20 62 79 | 20 73 74 65 76 65 40 61 |piled by| steve@a|
|00000020| 6c 74 61 69 72 2e 78 65 | 6d 61 63 73 2e 6f 72 67 |ltair.xe|macs.org|
|00000030| 20 6f 6e 20 54 68 75 20 | 4e 6f 76 20 32 30 20 31 | on Thu |Nov 20 1|
|00000040| 38 3a 30 34 3a 30 39 20 | 31 39 39 37 0a 3b 3b 3b |8:04:09 |1997.;;;|
|00000050| 20 66 72 6f 6d 20 66 69 | 6c 65 20 2f 68 6f 6d 65 | from fi|le /home|
|00000060| 2f 78 65 6d 61 63 73 2f | 32 30 2e 33 2f 78 65 6d |/xemacs/|20.3/xem|
|00000070| 61 63 73 2d 32 30 2e 33 | 2f 6c 69 73 70 2f 73 6b |acs-20.3|/lisp/sk|
|00000080| 6b 2f 73 74 72 69 6e 67 | 2e 65 6c 0a 3b 3b 3b 20 |k/string|.el.;;; |
|00000090| 65 6d 61 63 73 20 76 65 | 72 73 69 6f 6e 20 32 30 |emacs ve|rsion 20|
|000000a0| 2e 33 20 22 56 61 74 69 | 63 61 6e 20 43 69 74 79 |.3 "Vati|can City|
|000000b0| 22 20 58 45 6d 61 63 73 | 20 20 4c 75 63 69 64 2e |" XEmacs| Lucid.|
|000000c0| 0a 3b 3b 3b 20 62 79 74 | 65 63 6f 6d 70 20 76 65 |.;;; byt|ecomp ve|
|000000d0| 72 73 69 6f 6e 20 32 2e | 32 35 20 58 45 6d 61 63 |rsion 2.|25 XEmac|
|000000e0| 73 3b 20 32 32 2d 4d 61 | 72 2d 39 36 2e 0a 3b 3b |s; 22-Ma|r-96..;;|
|000000f0| 3b 20 6f 70 74 69 6d 69 | 7a 61 74 69 6f 6e 20 69 |; optimi|zation i|
|00000100| 73 20 6f 6e 2e 0a 3b 3b | 3b 20 74 68 69 73 20 66 |s on..;;|; this f|
|00000110| 69 6c 65 20 75 73 65 73 | 20 6f 70 63 6f 64 65 73 |ile uses| opcodes|
|00000120| 20 77 68 69 63 68 20 64 | 6f 20 6e 6f 74 20 65 78 | which d|o not ex|
|00000130| 69 73 74 20 69 6e 20 45 | 6d 61 63 73 20 31 39 2e |ist in E|macs 19.|
|00000140| 0a 0a 28 69 66 20 28 61 | 6e 64 20 28 62 6f 75 6e |..(if (a|nd (boun|
|00000150| 64 70 20 27 65 6d 61 63 | 73 2d 76 65 72 73 69 6f |dp 'emac|s-versio|
|00000160| 6e 29 0a 09 20 28 6f 72 | 20 28 61 6e 64 20 28 62 |n).. (or| (and (b|
|00000170| 6f 75 6e 64 70 20 27 65 | 70 6f 63 68 3a 3a 76 65 |oundp 'e|poch::ve|
|00000180| 72 73 69 6f 6e 29 20 65 | 70 6f 63 68 3a 3a 76 65 |rsion) e|poch::ve|
|00000190| 72 73 69 6f 6e 29 0a 09 | 20 20 20 20 20 28 73 74 |rsion)..| (st|
|000001a0| 72 69 6e 67 2d 6c 65 73 | 73 70 20 65 6d 61 63 73 |ring-les|sp emacs|
|000001b0| 2d 76 65 72 73 69 6f 6e | 20 22 32 30 22 29 29 29 |-version| "20")))|
|000001c0| 0a 20 20 20 20 28 65 72 | 72 6f 72 20 22 60 73 74 |. (er|ror "`st|
|000001d0| 72 69 6e 67 2e 65 6c 27 | 20 77 61 73 20 63 6f 6d |ring.el'| was com|
|000001e0| 70 69 6c 65 64 20 66 6f | 72 20 45 6d 61 63 73 20 |piled fo|r Emacs |
|000001f0| 32 30 22 29 29 0a 0a 28 | 6f 72 20 28 62 6f 75 6e |20"))..(|or (boun|
|00000200| 64 70 20 27 63 75 72 72 | 65 6e 74 2d 6c 6f 61 64 |dp 'curr|ent-load|
|00000210| 2d 6c 69 73 74 29 20 28 | 73 65 74 71 20 63 75 72 |-list) (|setq cur|
|00000220| 72 65 6e 74 2d 6c 6f 61 | 64 2d 6c 69 73 74 20 6e |rent-loa|d-list n|
|00000230| 69 6c 29 29 0a 0a 0a 28 | 62 79 74 65 2d 63 6f 64 |il))...(|byte-cod|
|00000240| 65 20 22 c0 c1 21 88 c2 | c3 21 87 22 20 5b 72 65 |e "..!..|.!." [re|
|00000250| 71 75 69 72 65 20 71 75 | 65 75 65 2d 6d 20 70 72 |quire qu|eue-m pr|
|00000260| 6f 76 69 64 65 20 73 74 | 72 69 6e 67 5d 20 32 29 |ovide st|ring] 2)|
|00000270| 0a 23 40 35 39 35 20 52 | 65 70 6c 61 63 65 20 66 |.#@595 R|eplace f|
|00000280| 69 72 73 74 20 6d 61 74 | 63 68 20 6f 66 20 52 45 |irst mat|ch of RE|
|00000290| 47 45 58 50 20 69 6e 20 | 53 54 52 49 4e 47 20 77 |GEXP in |STRING w|
|000002a0| 69 74 68 20 4e 45 57 54 | 45 58 54 2e 0a 49 66 20 |ith NEWT|EXT..If |
|000002b0| 6e 6f 20 6d 61 74 63 68 | 20 69 73 20 66 6f 75 6e |no match| is foun|
|000002c0| 64 2c 20 6e 69 6c 20 69 | 73 20 72 65 74 75 72 6e |d, nil i|s return|
|000002d0| 65 64 20 69 6e 73 74 65 | 61 64 20 6f 66 20 74 68 |ed inste|ad of th|
|000002e0| 65 20 6e 65 77 20 73 74 | 72 69 6e 67 2e 0a 0a 4f |e new st|ring...O|
|000002f0| 70 74 69 6f 6e 61 6c 20 | 61 72 67 20 4c 49 54 45 |ptional |arg LITE|
|00000300| 52 41 4c 20 6e 6f 6e 2d | 6e 69 6c 20 6d 65 61 6e |RAL non-|nil mean|
|00000310| 73 20 74 6f 20 74 61 6b | 65 20 4e 45 57 54 45 58 |s to tak|e NEWTEX|
|00000320| 54 20 6c 69 74 65 72 61 | 6c 6c 79 2e 20 49 66 20 |T litera|lly. If |
|00000330| 4c 49 54 45 52 41 4c 20 | 69 73 20 0a 6e 69 6c 2c |LITERAL |is .nil,|
|00000340| 20 63 68 61 72 61 63 74 | 65 72 20 60 5c 27 20 69 | charact|er `\' i|
|00000350| 73 20 74 68 65 20 73 74 | 61 72 74 20 6f 66 20 6f |s the st|art of o|
|00000360| 6e 65 20 6f 66 20 74 68 | 65 20 66 6f 6c 6c 6f 77 |ne of th|e follow|
|00000370| 69 6e 67 20 73 65 71 75 | 65 6e 63 65 73 3a 0a 20 |ing sequ|ences:. |
|00000380| 20 5c 5c 20 20 20 77 69 | 6c 6c 20 62 65 20 72 65 | \\ wi|ll be re|
|00000390| 70 6c 61 63 65 64 20 62 | 79 20 61 20 73 69 6e 67 |placed b|y a sing|
|000003a0| 6c 65 20 5c 2e 0a 20 20 | 5c 26 20 20 20 77 69 6c |le \.. |\& wil|
|000003b0| 6c 20 62 65 20 72 65 70 | 6c 61 63 65 64 20 62 79 |l be rep|laced by|
|000003c0| 20 74 68 65 20 74 65 78 | 74 20 77 68 69 63 68 20 | the tex|t which |
|000003d0| 6d 61 74 63 68 65 64 20 | 74 68 65 20 72 65 67 65 |matched |the rege|
|000003e0| 78 70 2e 0a 20 20 5c 4e | 20 20 20 77 68 65 72 65 |xp.. \N| where|
|000003f0| 20 4e 20 69 73 20 61 20 | 6e 75 6d 62 65 72 20 61 | N is a |number a|
|00000400| 6e 64 20 31 20 3c 3d 20 | 4e 20 3c 3d 20 39 2c 20 |nd 1 <= |N <= 9, |
|00000410| 77 69 6c 6c 20 62 65 20 | 72 65 70 6c 61 63 65 64 |will be |replaced|
|00000420| 0a 20 20 20 20 20 20 20 | 62 79 20 74 68 65 20 4e |. |by the N|
|00000430| 74 68 20 73 75 62 65 78 | 70 72 65 73 73 69 6f 6e |th subex|pression|
|00000440| 20 69 6e 20 52 45 47 45 | 58 50 2e 20 53 75 62 65 | in REGE|XP. Sube|
|00000450| 78 70 72 65 73 73 69 6f | 6e 73 20 61 72 65 20 67 |xpressio|ns are g|
|00000460| 72 6f 75 70 65 64 0a 20 | 20 20 20 20 20 20 69 6e |rouped. | in|
|00000470| 73 69 64 65 20 5c 28 20 | 5c 29 2e 0a 0a 4f 70 74 |side \( |\)...Opt|
|00000480| 69 6f 6e 61 6c 20 61 72 | 67 20 47 4c 4f 42 41 4c |ional ar|g GLOBAL|
|00000490| 20 6d 65 61 6e 73 20 74 | 6f 20 72 65 70 6c 61 63 | means t|o replac|
|000004a0| 65 20 61 6c 6c 20 6d 61 | 74 63 68 65 73 20 69 6e |e all ma|tches in|
|000004b0| 73 74 65 61 64 20 6f 66 | 20 6f 6e 6c 79 20 74 68 |stead of| only th|
|000004c0| 65 20 66 69 72 73 74 2e | 1f 0a 28 64 65 66 61 6c |e first.|..(defal|
|000004d0| 69 61 73 20 27 73 74 72 | 69 6e 67 2d 72 65 70 6c |ias 'str|ing-repl|
|000004e0| 61 63 65 2d 6d 61 74 63 | 68 20 23 5b 28 72 65 67 |ace-matc|h #[(reg|
|000004f0| 65 78 70 20 73 74 72 69 | 6e 67 20 6e 65 77 74 65 |exp stri|ng newte|
|00000500| 78 74 20 26 6f 70 74 69 | 6f 6e 61 6c 20 6c 69 74 |xt &opti|onal lit|
|00000510| 65 72 61 6c 20 67 6c 6f | 62 61 6c 29 20 22 c0 20 |eral glo|bal) ". |
|00000520| 19 c2 8e 0b ab ce c4 c5 | c6 89 1e 07 1e 08 1e 09 |........|........|
|00000530| 1e 5c 6e cb 0e 0c 0e 0d | 0e 09 23 ab a8 c5 94 16 |.\n.....|..#.....|
|00000540| 08 c5 95 16 07 0e 5c 6e | 0e 0d 0e 09 0e 08 4f 0e |......\n|......O.|
|00000550| 0e ab 84 0e 0f aa 86 d0 | 0e 0d 0e 0f 5c 22 51 16 |........|....\"Q.|
|00000560| 5c 6e 0e 07 16 09 aa 4e | 0e 08 ad 89 0e 5c 6e 0e |\n.....N|.....\n.|
|00000570| 0d 0e 09 c6 4f 50 2c aa | a4 cb 0e 0c 0e 0d c5 23 |....OP,.|.......#|
|00000580| ad 9b 0e 0d c5 89 94 4f | 0e 0e ab 84 0e 0f aa 86 |.......O|........|
|00000590| d0 0e 0d 0e 0f 5c 22 0e | 0d c5 95 c6 4f 51 2a 87 |.....\".|....OQ*.|
|000005a0| 22 20 5b 6d 61 74 63 68 | 2d 64 61 74 61 20 64 61 |" [match|-data da|
|000005b0| 74 61 20 28 28 73 74 6f | 72 65 2d 6d 61 74 63 68 |ta ((sto|re-match|
|000005c0| 2d 64 61 74 61 20 64 61 | 74 61 29 29 20 67 6c 6f |-data da|ta)) glo|
|000005d0| 62 61 6c 20 22 22 20 30 | 20 6e 69 6c 20 6d 61 74 |bal "" 0| nil mat|
|000005e0| 63 68 65 6e 64 20 6d 61 | 74 63 68 62 65 67 69 6e |chend ma|tchbegin|
|000005f0| 6e 69 6e 67 20 73 74 61 | 72 74 20 72 65 73 75 6c |ning sta|rt resul|
|00000600| 74 20 73 74 72 69 6e 67 | 2d 6d 61 74 63 68 20 72 |t string|-match r|
|00000610| 65 67 65 78 70 20 73 74 | 72 69 6e 67 20 6c 69 74 |egexp st|ring lit|
|00000620| 65 72 61 6c 20 6e 65 77 | 74 65 78 74 20 65 6c 69 |eral new|text eli|
|00000630| 62 2d 73 74 72 69 6e 67 | 2d 65 78 70 61 6e 64 2d |b-string|-expand-|
|00000640| 6e 65 77 74 65 78 74 5d | 20 35 20 28 23 24 20 2e |newtext]| 5 (#$ .|
|00000650| 20 36 33 31 29 5d 29 0a | 28 64 65 66 61 6c 69 61 | 631)]).|(defalia|
|00000660| 73 20 27 65 6c 69 62 2d | 73 74 72 69 6e 67 2d 65 |s 'elib-|string-e|
|00000670| 78 70 61 6e 64 2d 6e 65 | 77 74 65 78 74 20 23 5b |xpand-ne|wtext #[|
|00000680| 28 73 74 72 69 6e 67 20 | 6e 65 77 74 65 78 74 29 |(string |newtext)|
|00000690| 20 22 c0 09 47 c2 1b 1c | 89 1d 0c 57 ab d7 0b 09 | "..G...|...W....|
|000006a0| 0d 48 89 1e 06 c7 55 ab | bf 09 0d 54 89 15 48 89 |.H....U.|...T..H.|
|000006b0| 16 06 c8 55 ab 87 c9 c0 | 0e 5c 6e 5c 22 aa af 0e |...U....|.\n\"...|
|000006c0| 06 cb 59 ab 9f 0e 06 cc | 58 ab 99 0e 06 cd 5a 89 |..Y.....|X.....Z.|
|000006d0| 1e 0e 94 ab 8b 0e 5c 6e | 0e 0e 94 0e 0e 95 4f aa |......\n|......O.|
|000006e0| 81 c2 29 aa 8a cf 0e 06 | 21 aa 84 cf 0e 06 21 29 |..).....|!.....!)|
|000006f0| 50 13 0d 54 89 15 aa 25 | 0b 2b 87 22 20 5b 30 20 |P..T...%|.+." [0 |
|00000700| 6e 65 77 74 65 78 74 20 | 22 22 20 65 78 70 61 6e |newtext |"" expan|
|00000710| 64 65 64 2d 6e 65 77 74 | 65 78 74 20 6c 65 6e 20 |ded-newt|ext len |
|00000720| 70 6f 73 20 63 20 3f 5c | 5c 20 3f 5c 26 20 6d 61 |pos c ?\|\ ?\& ma|
|00000730| 74 63 68 2d 73 74 72 69 | 6e 67 20 73 74 72 69 6e |tch-stri|ng strin|
|00000740| 67 20 3f 31 20 3f 39 20 | 3f 30 20 6e 20 63 68 61 |g ?1 ?9 |?0 n cha|
|00000750| 72 2d 74 6f 2d 73 74 72 | 69 6e 67 5d 20 35 5d 29 |r-to-str|ing] 5])|
|00000760| 0a 23 40 31 35 36 20 53 | 70 6c 69 74 74 69 6e 67 |.#@156 S|plitting|
|00000770| 20 6f 6e 20 72 65 67 65 | 78 70 20 50 41 54 54 45 | on rege|xp PATTE|
|00000780| 52 4e 2c 20 74 75 72 6e | 20 73 74 72 69 6e 67 20 |RN, turn| string |
|00000790| 53 54 52 49 4e 47 20 69 | 6e 74 6f 20 61 20 6c 69 |STRING i|nto a li|
|000007a0| 73 74 20 6f 66 20 73 75 | 62 73 74 72 69 6e 67 73 |st of su|bstrings|
|000007b0| 2e 0a 4f 70 74 69 6f 6e | 61 6c 20 74 68 69 72 64 |..Option|al third|
|000007c0| 20 61 72 67 20 4c 49 4d | 49 54 20 28 3e 3d 20 31 | arg LIM|IT (>= 1|
|000007d0| 29 20 69 73 20 61 20 6c | 69 6d 69 74 20 74 6f 20 |) is a l|imit to |
|000007e0| 74 68 65 20 6c 65 6e 67 | 74 68 20 6f 66 20 74 68 |the leng|th of th|
|000007f0| 65 0a 72 65 73 75 6c 74 | 69 6e 67 20 6c 69 73 74 |e.result|ing list|
|00000800| 2e 1f 0a 28 64 65 66 61 | 6c 69 61 73 20 27 73 74 |...(defa|lias 'st|
|00000810| 72 69 6e 67 2d 73 70 6c | 69 74 20 23 5b 28 70 61 |ring-spl|it #[(pa|
|00000820| 74 74 65 72 6e 20 73 74 | 72 69 6e 67 20 26 6f 70 |ttern st|ring &op|
|00000830| 74 69 6f 6e 61 6c 20 6c | 69 6d 69 74 29 20 22 c0 |tional l|imit) ".|
|00000840| 20 19 c2 0b 0c 5c 22 1d | c6 c7 89 42 42 1e 08 c9 | ....\".|...BB...|
|00000850| 1e 5c 6e 0d ad 82 cb 95 | 1e 0c cd 8e ce 0e 08 0c |.\n.....|........|
|00000860| cb 0d 4f 5c 22 88 0e 0c | ab ae 0e 0f a8 ab 87 0e |..O\"...|........|
|00000870| 5c 6e 0e 0f 57 ab a2 c2 | 0b 0c 0e 0c 23 ab 9a cb |\n..W...|....#...|
|00000880| 94 15 0e 5c 6e 54 16 5c | 6e ce 0e 08 0c 0e 0c 0d |...\nT.\|n.......|
|00000890| 4f 5c 22 88 cb 95 89 16 | 0c 15 aa 52 0e 0f a8 ab |O\".....|...R....|
|000008a0| 87 0e 5c 6e 0e 0f 57 ab | 8e 0e 0c ab 8a ce 0e 08 |..\n..W.|........|
|000008b0| 0c 0e 0c c7 4f 5c 22 88 | 0e 08 41 40 2e 06 87 22 |....O\".|..A@..."|
|000008c0| 20 5b 6d 61 74 63 68 2d | 64 61 74 61 20 64 61 74 | [match-|data dat|
|000008d0| 61 20 73 74 72 69 6e 67 | 2d 6d 61 74 63 68 20 70 |a string|-match p|
|000008e0| 61 74 74 65 72 6e 20 73 | 74 72 69 6e 67 20 73 74 |attern s|tring st|
|000008f0| 61 72 74 20 51 55 45 55 | 45 20 6e 69 6c 20 72 65 |art QUEU|E nil re|
|00000900| 73 75 6c 74 2d 71 20 31 | 20 63 6f 75 6e 74 20 30 |sult-q 1| count 0|
|00000910| 20 65 6e 64 20 28 28 73 | 74 6f 72 65 2d 6d 61 74 | end ((s|tore-mat|
|00000920| 63 68 2d 64 61 74 61 20 | 64 61 74 61 29 29 20 71 |ch-data |data)) q|
|00000930| 75 65 75 65 2d 65 6e 71 | 75 65 75 65 20 6c 69 6d |ueue-enq|ueue lim|
|00000940| 69 74 5d 20 36 20 28 23 | 24 20 2e 20 31 38 39 35 |it] 6 (#|$ . 1895|
|00000950| 29 5d 29 0a | |)]). | |
+--------+-------------------------+-------------------------+--------+--------+